// mine/pages/setlists/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgurl:"https://img.yzcdn.cn/vant/cat.jpeg",
    avator:wx.getStorageSync('memberinfo').member_head,
    name:wx.getStorageSync('memberinfo').name
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  gotoaccount(e){
    var t = this
    wx.navigateTo({
      url:'/mine/pages/accountlists/index'
    })
  },
  gotoedit(e){
    var t = this
    wx.navigateTo({
      url:'/mine/pages/teacheredit/index'
    })
  },
  gotofeedbacklists(){
    var t= this
    wx.navigateTo({
      url: '/mine/pages/feedbacklists/index',
    })
  },
  // 退出
  out(){
    var t = this
    wx.showModal({

      title: '提示',
 
      content: '是否退出登录',
 
      success: function (res) {
 
        if (res.confirm) {//这里是点击了确定以后
 
          wx.clearStorage()
          wx.redirectTo({
            url: '/pages/login/index'
          })
 
        } else {//这里是点击了取消以后
 
          console.log('用户点击取消')
 
        }
 
      }
 
    })
    
  },
})